package com.jerry.hm.datastructure.priorityqueue;

/**
 * 实体
 *
 * @author Jerry
 * @since 2024/10/5 12:19
 */
public class Entry implements Priority {

    private String value;
    private int priority;

    public Entry(String value, int priority) {
        this.value = value;
        this.priority = priority;
    }

    @Override
    public int priority() {
        return priority;
    }

    @Override
    public String toString() {
        return "Entry{" + "value='" + value + '\'' + ", priority=" + priority + '}';
    }
}
